/// @desc animationEndScript(Sprite, EndScript)
/// @arg sprite 
/// @arg endScript
//执行一个动画并选择性执行一个脚本
function PlayerActOutAnimation(){
	state = PlayerStateAct;
	sprite_index = argument[0];
	if(argument_count > 1)  animationEndScript = argument[1];
	localFrame = 0;
	image_index = 0;
	PlayerAnimateSprite();
}